package com.syne.project.module.receiptdetail.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.syne.project.module.receiptdetail.mapper.ReceiptdetailMapper;
import com.syne.project.module.receiptdetail.domain.Receiptdetail;
import com.syne.project.module.receiptdetail.service.IReceiptdetailService;
import com.syne.common.support.Convert;

/**
 * 收货明细 服务层实现
 *
 * @author ruoyi
 * @date 2018-08-29
 */
@Service
public class ReceiptdetailServiceImpl implements IReceiptdetailService
{
	@Autowired
	private ReceiptdetailMapper receiptdetailMapper;

	/**
     * 查询收货明细信息
     *
     * @param storerkey 收货明细ID
     * @return 收货明细信息
     */
    @Override
	public Receiptdetail selectReceiptdetailById(String storerkey)
	{
	    return receiptdetailMapper.selectReceiptdetailById(storerkey);
	}

	/**
     * 查询收货明细列表
     *
     * @param receiptdetail 收货明细信息
     * @return 收货明细集合
     */
	@Override
	public List<Receiptdetail> selectReceiptdetailList(Receiptdetail receiptdetail)
	{
	    return receiptdetailMapper.selectReceiptdetailList(receiptdetail);
	}

    /**
     * 新增收货明细
     *
     * @param receiptdetail 收货明细信息
     * @return 结果
     */
	@Override
	public int insertReceiptdetail(Receiptdetail receiptdetail)
	{
	    return receiptdetailMapper.insertReceiptdetail(receiptdetail);
	}

	/**
     * 修改收货明细
     *
     * @param receiptdetail 收货明细信息
     * @return 结果
     */
	@Override
	public int updateReceiptdetail(Receiptdetail receiptdetail)
	{
	    return receiptdetailMapper.updateReceiptdetail(receiptdetail);
	}

	/**
     * 删除收货明细对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteReceiptdetailByIds(String ids)
	{
		return receiptdetailMapper.deleteReceiptdetailByIds(Convert.toStrArray(ids));
	}

}
